## Process this file with automake to produce Makefile.in
## Created by Anjuta

SUBDIRS = src po

desktopdir = $(datadir)/applications
desktop_in_files = applications/curtain.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

pixmapdir = $(datadir)/pixmaps
pixmap_DATA = pixmaps/curtain.png


INTLTOOL_FILES = intltool-extract.in \
	intltool-merge.in \
	intltool-update.in

EXTRA_DIST = $(curtaindoc_DATA) \
	$(INTLTOOL_FILES) \
        $(pixmap_DATA) debian applications

DISTCLEANFILES = intltool-extract \
	intltool-merge \
	intltool-update \
	po/.intltool-merge-cache

deb:
	debuild -us -uc -b
	mv ../$(PACKAGE_NAME)_$(PACKAGE_VERSION)-*.deb .


# Remove doc directory on uninstall
uninstall-local:
	-rm -fr $(uidir)
	-rm -fr $(datadir)/curtain
	
clean:
	@for i in $(SUBDIRS); do \
        echo "Clearing in $$i..."; \
        (cd $$i; $(MAKE) clean); done
	rm -f applications/curtain.desktop	
	rm -fr debian/tmp
	rm -fr debian/files
	rm -fr debian/curtain
	rm -f  debian/debhelper.log
	rm -fr debian/substvars

